#include <ext/hash_map>
#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace __gnu_cxx;
using namespace std;
int test1();
int test2();
int main(int argc, char* argv[])
{
  test1();
  test2();
  return 0;
}
int test1()
{
  cout << "====1====" <<endl;
  hash_map<int, int> IntHash;
  hash_map<int, int>::iterator it;
  IntHash[1] = 123;
  IntHash[2] = 234;
  it = IntHash.find(1);
  cout <<"Key["<<it->first <<"]Value["<<it->second<<"]"<<endl;
  return 0;
}
int test2()
{
  cout << "====2====" <<endl;
  hash_map<int, string> char_hash;
  hash_map<int, string>::iterator it; 
  //char_hash.insert(pair<string, string>(key, value));
  char_hash.insert(pair<int, string>(1, "hellow"));
#if 1
  it = char_hash.find(1);
  cout <<"Key["<<it->first <<"]Value["<<it->second<<"]"<<endl;
#endif
  return 0;
}
